using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;

public class TestTexture : MonoBehaviour
{
    
    public Image image;
    public Texture2D texture;
    // Start is called before the first frame update
    void Start()
    {
        Sprite sprite = Sprite.Create(texture,new Rect(0,0,texture.width,texture.height),new Vector2(0.5f,0.5f));
        image.sprite = sprite;
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
